<%@page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>crm</title>
	<link rel="stylesheet" type="text/css" href="${ctx}/css/style.css">
	<link rel="stylesheet" type="text/css" href="${ctx}/js/layer/theme/default/layer.css">
	<link href="images/favicon.ico" rel="icon" type="image/x-icon" />
	<!-- <script src="https://cdn.bootcss.com/jquery/1.9.1/jquery.min.js"></script> -->
	<script type="text/javascript" src="${ctx}/js/jquery-1.9.1.min.js"></script>
	<script type="text/javascript" src="${ctx}/js/layer/layer.js"></script>
	<script type="text/javascript" src="${ctx}/js/config.js"></script>
</head>
<body>
<FORM method="post" name="loginForm" id="loginForm" action="${ctx}/controller/Login">
	<div class="login">
    <div class="login-box">
      <div>
        <img src="${ctx}/images/login_logo.png" style="width: 364px;">
      </div>
      <div style="margin-left:38px;">
        <div class="login-cell">
          <input type="text" placeholder="手机号/用户名" name="accountName">
        </div>
        <div class="login-cell">
          <input type="password" placeholder="密码" name="accountPassword">
        </div>
        <div style="margin-top:32px;">
          <button class="login-button" type="submit" >登录</button>
        </div>
      </div>
    </div>
  </div>
</FORM>
  <!--<script type="text/javascript">-->

  	<!--function login(){-->
  		<!--if ($('input[name=loginName]').val() == '' || $('input[name=loginPassword]').val() == '') {-->
  			<!--layer.msg('请输入用户名密码！');-->
  			<!--return false;-->
  		<!--}-->
  		<!--$.ajax({-->
	      <!--type: "get",      //data 传送数据类型。post 传递-->
	      <!--dataType: 'json',  // 返回数据的数据类型json-->
	      <!--url: crmUrl + "/Login",  // yii 控制器/方法-->
	      <!--cache: false,-->
	      <!--data: {'loginName': $('input[name=loginName]').val(),'loginPassword':$('input[name=loginPassword]').val()},  //传送的数据-->
	      <!--error:function(){-->
	         <!--// alert("数据传输错误");-->
	      <!--},success: function (data) {-->
	         <!--console.log(data);-->
	         <!--if (data.result != 'success') {-->
	         	<!--layer.msg(data.message);-->
	         	<!--$('input[name=loginName]').val('');-->
	         	<!--$('input[name=loginPassword]').val('');-->
	            <!--return false;-->
	         <!--}-->
	         <!--sessionStorage.setItem('crmAccount',JSON.stringify(data.crmAccount));-->
	         <!--sessionStorage.setItem('fdfs_path_url',JSON.stringify(data.pathUrl));-->
	        <!--window.location.href="html/index.html";-->

	      <!--}-->
	    <!--});-->
  	<!--}-->
  <!--</script>-->
</body>
</html>